from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^$', 'dlog.dlogcore.views.today_check'),
    (r'^list/$', 'dlog.dlogcore.views.list'),
    (r'^item/(?P<itemid>\d+)/$', 'dlog.dlogcore.views.item'),
    (r'^modify/(?P<itemid>\d+)/$', 'dlog.dlogcore.views.modify'),
    (r'^do_modify/(?P<itemid>\d+)/$', 'dlog.dlogcore.views.do_modify'),
    (r'^delete/(?P<itemid>\d+)/$', 'dlog.dlogcore.views.delete'),
    (r'^add/$', 'dlog.dlogcore.views.add'),
    (r'^do_add/$', 'dlog.dlogcore.views.do_add'),
    (r'^login/$', 'dlog.dlogcore.views.login'),
    #(r'^login/$', 'django.contrib.auth.views.login', {'template_name':'login_template.html'}),
    #(r'^do_login/$', 'dlog.dlogcore.views.do_login'),
    (r'^logout/$', 'dlog.dlogcore.views.logout'),
    (r'^search/$', 'dlog.dlogcore.views.search'),
    (r'^dcheck/(?P<year>\d+)/(?P<month>\d+)/(?P<day>\d+)/$', 'dlog.dlogcore.views.daily_check'),
    (r'^dcheck/$', 'dlog.dlogcore.views.today_check'),
    (r'^pcheck/(?P<user_id>\d+)/(?P<year>\d+)/(?P<month>\d+)/$', 'dlog.dlogcore.views.people_check'),
    (r'^pcheck/$', 'dlog.dlogcore.views.my_check'),
    (r'^suggest/$', 'dlog.dlogcore.views.suggest'),
    (r'^do_suggest/$', 'dlog.dlogcore.views.do_suggest'),
    (r'^report/$', 'dlog.dlogcore.views.sendreport'),
    (r'^changepsw/$', 'dlog.dlogcore.views.changepsw'),
    (r'^comment/(?P<itemid>\d+)/$', 'dlog.dlogcore.views.comment'),
    (r'^mytodo/$', 'dlog.dlogcore.views.mytodo'),
)